import Vue from 'vue'
import fastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

import router from './router'
import store from './store'
import App from './App.vue'
import Toast from 'components/common/toast'

Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()
Vue.use(Toast)

Vue.use(VueLazyLoad,{
  loading:require('./assets/img/common/placeholder.png')
})

// 解决移动端300ms延迟的问题
fastClick.attach(document.body)


new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
